/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entities;

/**
 *
 * @author PDA
 */
public class CustomConverter {
    
    /*
     * Convert Object of java.util.Date into type of java.sql.Date
     */
    public java.sql.Date convertUtilDateToSqlDate(java.util.Date utilDate) {        
        java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());
        return  sqlDate;        
    }
    
    
    /*
     * Convert Object of java.sql.Date into type of java.util.Date
     */
    public java.util.Date convertSqlDateToUtilDate(java.sql.Date sqlDate) {        
        java.util.Date utilDate = sqlDate;
        return utilDate;        
    }
    
    
    
}